package com.reyco1.medusa.util
{
	public class VariableUtil
	{
		public static function toBoolean(variable:String):Boolean
		{
			return variable == "true" ? true : false;
		}
		
		public static function toNumber(variable:String):Number
		{
			return !isNaN(Number(variable)) ? Number(variable) : 0;
		}
		
		public static function toArray(variable:String):Array
		{
			return variable.split(",");
		}
	}
}